﻿@model IEnumerable<KRM.Core.tblCompany>
@{
    ViewBag.Title = "ListCompany";
}

<table class="table table-bordered table-fix krmtable" id="tableCompany" data-height="450">
    <thead>
        <tr>
            <th>Details</th>
            <th>Company Name</th>
            <th>Email</th>
            <th>Contact</th>
            <th>Telephone</th>
            <th>Telephone2</th>
            <th>Fax</th>
            <th>Mobile Number</th>
            <th>Archive</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model)
        {
            <tr style="cursor: pointer;" class="archive@(item.Archive == true ? 1 : 0)">
                <td><a onclick="ViewCompanyDetails(@item.CompanyID)" class="btn btn-primary" data-toggle="modal" href="#divViewDetails"><i class="icon-file-alt"></i>View</a></td>
                <td>@item.CompanyName</td>
                <td>@item.Email</td>
                <td>@item.Contact</td>
                <td>@item.Telephone</td>
                <td>@item.Telephone2</td>
                <td>@item.Fax</td>
                <td>@item.MobileNumber</td>
                <td>@item.Archive</td>
            </tr>
        }
    </tbody>
</table>
